const Koa=require('koa')

// post请求
const PostKoA=require('koa-body')
const app=new Koa();


const goodRouter=require('./router/good')
const navRouter=require('./router/nav')
const shopCradRouter=require('./router/shopcard')
const ordergoodRouter=require('./router/ordergood')
const ordersRouter=require('./router/orders')

app.use(goodRouter.routes())
app.use(navRouter.routes())
app.use(shopCradRouter.routes())
app.use(ordergoodRouter.routes())
app.use(ordersRouter.routes())


app.listen(4200,()=>{
  console.log('程序已启动：'+'http://127.0.0.1:5200')
})